/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package conversion;

import java.util.Scanner;

/**
 *
 * @author John
 */
public class Conversion {

    public static String convert(int km, int cm) {
    double mi = 1.609*km;
    double in = 2.54*cm;
    return "Miles " + mi + " Inches " + in;
    }

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a km value:");
        int km = input.nextInt();
        System.out.print("Enter a cm value:");
        int cm = input.nextInt();
        String s = convert(km, cm);
        System.out.println(s);
        }
}
